package cn.edu.xmut.second;

public class France implements IPerson {
    private IAxe axe;
    private IAxe axe2;
    private String name;
    public France() {
    }
    public France(IAxe axe,IAxe axe2,String name) {
        this.axe = axe;
        this.axe2 = axe2;
        this.name = name;
    }
    @Override
    public void userAxe() {
        axe.chop();
        axe2.chop();
        System.out.println(name);
    }

}
